﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace Sublimation.Behaviours
{
    public class BulletFrictionBehavior: Behaviour
    {
        protected WorldProperties worldProperties;
        protected GameObject owner;
        protected float weight;
        public float getWeight() { return this.weight; }
        protected float aerodynamics;
        public float getAerodynamics() { return this.aerodynamics; }

        public BulletFrictionBehavior(WorldProperties worldProperties, GameObject owner, float aerodynamics)
        {
            this.worldProperties = worldProperties;
            this.owner = owner;
            this.aerodynamics = aerodynamics;
        }

        public Vector2 RunBehaviour()
        {
            // the urge to continue to move in the same direction

            return owner.Velocity * aerodynamics * WorldProperties.AIR_FRICTION;
        }
    }
}
